﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PopupAddress.aspx.cs" Inherits="MockPrjTeam4.Pages.Forms.PopupAddress" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .wrap
        {
            width: 700px;
            border: 1px solid #330099;
            margin-top: 10px;
            margin-left: 10px;
            }
        .search
        {
            width: 619px;
            border: 1px solid #330099;
            margin: 10px 20px 20px 20px;
            padding: 10px 20px 10px 20px;
            }
        .searchBtn
        {
            margin-left: 20px;
            margin: 0 20px 20px 20px;
            }
        .gv
        {
            margin: 0 20px 20px 20px;
            }
        .doBtn
        {
            margin: 0 20px 20px 20px;
            }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="wrap">
        <div class="search">
            <table border="0" cellspacing="0" cellpadding="0" width="100%">
            	<tr>
            		<td>Postcode:</td>&nbsp&nbsp
                    <td>
                        <asp:TextBox ID="txtPostcode" runat="Server"></asp:TextBox>&nbsp&nbsp
                    </td>
                    <td>Street:</td>&nbsp&nbsp
                    <td>
                        <asp:TextBox ID="txtStreet" runat="Server"></asp:TextBox>&nbsp&nbsp
                    </td>
                    <td>Town:</td>&nbsp&nbsp
                    <td>
                        <asp:TextBox ID="txtTown" runat="Server"></asp:TextBox>
                    </td>
            	</tr>
            </table>
        </div>
        <div class="searchBtn">
            <asp:Button ID="btnSearch" runat="Server" Text="Search Address" OnClick="btnSearch_Click"/>&nbsp&nbsp
            <asp:Button ID="btnNone" runat="Server" Text="None" OnClick="btnNone_Click"/>&nbsp&nbsp
            <asp:Button ID="btnClear" runat="Server" Text="Clear" OnClick="btnClear_Click"/>&nbsp&nbsp
        </div>
        <div class="gv">
            <asp:GridView ID="gvAddress" runat="Server" AllowPaging="True" AllowSorting="True"
            PageSize="5" AutoGenerateColumns="False" DataKeyNames="AddressId"
            OnPageIndexChanging="gvAddress_PageIndexChanging" Width="100%" 
                BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" 
                CellPadding="4">
                <Columns>
                    <asp:BoundField HeaderText="Address" DataField="AddressLine1"/>
                    <asp:BoundField HeaderText="Postcode" DataField="PostCode"/>
                    <asp:BoundField HeaderText="Town" DataField="TownName"/>
                    <asp:BoundField HeaderText="County" DataField="CountyName"/>
                    <asp:BoundField HeaderText="Country" DataField="CountryName"/>
                    <asp:CommandField HeaderText="Select" ShowSelectButton="true"
                    ControlStyle-Font-Underline="true" ControlStyle-ForeColor="red">
<ControlStyle Font-Underline="True" ForeColor="Red"></ControlStyle>
                    </asp:CommandField>
                </Columns>
                <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                <RowStyle BackColor="White" ForeColor="#330099" />
                <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                <SortedAscendingCellStyle BackColor="#FEFCEB" />
                <SortedAscendingHeaderStyle BackColor="#AF0101" />
                <SortedDescendingCellStyle BackColor="#F6F0C0" />
                <SortedDescendingHeaderStyle BackColor="#7E0000" />
            </asp:GridView>
        </div>
        <div class="doBtn">
            <asp:Button ID="btnSelect" runat="Server" Text="Select" OnClick="btnSelect_Click"/>&nbsp
            <asp:Button ID="btnClose" runat="Server" Text="Close" OnClick="btnClose_Click"/>
        </div>
    </div>
    </form>
</body>
</html>
